package com.victor.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 景区独立电子商务商品
 * @author 
 *
 */
@Entity
@Table(name = "jingqubusinessshop")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JingqubusinessShop {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// 编号,
	
	@Column(name="jlid",length=50)
	private String jlid;//景区id
	
	@Column(name="shopname",length=50)
	private String shopname;//商品名
	
	@Column(name="shopclassid",length=50)
	private String shopclassid;//商品分类id
	
	@Column(name="sxflag",length=50)
	private String sxflag;//上下架状态 0-下架  1-上架
	
	@Column(name="tjflag",length=50)
	private String tjflag;//推荐 0-不推荐  1-推荐
	
	@Column(name="detailsphoto",length=50)
	private String detailsphoto;//商品详情
	
	@Column(name="instime",length=50)
	private String instime;//添加商品时间
	
	@Column(name="price",length=50)
	private String price;//价格
	
	@Column(name="inventory",length=50)
	private String inventory;//库存
	
	@Column(name="location",length=50)
	private String location;//发货位置
	
	@Column(name="type",length=11)
	private String type;//商品类型，平台自营 个体自营 景区自营
	
	@Transient
	private List<Specifications> list;//景区独立电子商务商品规格
	
	@Transient
	private JingqubusinessShopclass shopclass;//景区独立电子商务商品分类

	@Transient
	private List<Jingqubusinessshop_photo> photos;//景区商品图片
	
	@Transient
	private String adminid;
	
	@Transient
	private String sellcount;//销售量

	@Transient
	private String favorites;//收藏数

	
	
}
